﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;

namespace Xss.Data.Mapper
{
    public class ExecuteDataSetMapper : AdoMapper
    {
        public ExecuteDataSetMapper()
        {
            DefaultDataSet = new DataSet();
        }

        public IDictionary DataMapping { get; set; }
        public DataSet DefaultDataSet { get; set; }

        protected override object ExecuteIntenal(object paramater)
        {
            AdoCommander commonder = new AdoCommander(Request.Store.CurrentSession);
            return commonder.ExecuteDataSet(DataMapping, DefaultDataSet);
        }
    }
}
